package com.legal.service.chat;

import com.legal.domain.po.ChatMemoryMsg;
import org.springframework.core.io.Resource;
import org.springframework.http.ResponseEntity;
import org.springframework.web.multipart.MultipartFile;
import reactor.core.publisher.Flux;

public interface AnalysisChatService {
    /**
     * 对话
     * @param chatMemoryMsg
     * @return
     */
    Flux<String> chat(ChatMemoryMsg chatMemoryMsg);

    /**
     * 文件下载
     * @param chatId
     * @return
     */
    ResponseEntity<Resource> download(String chatId);

    /**
     * 文件上传
     * @param id
     * @param file
     * @return
     */
    void save(Integer id, MultipartFile file);
}
